<?php
/**
 * @author qingyu8@staff.weibo.com
 * @date 2018/02/28
 */
namespace common\logic;

use yii;
use common\models\TripOccupancyRel as TripOccupancyRelModel;

class TripOccupancyRel {

    public static function getPrice($tripId) {
        $price = TripOccupancyRelModel::getScalar("`trip_id`=$tripId", ['price']);
        return $price;
    }
}
